<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>轮播图</title>
    <link rel="stylesheet" href="./iconfont/iconfont.css">
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
        }

        .banner {
            position: relative;
            margin: 100px auto;
            width: 564px;
            height: 315px;
            overflow: hidden;
        }

        ul {
            display: flex;
        }

        ul li img {
            vertical-align: middle;
            width: 564px;
            border-radius: 10px;
        }

        .banner .prev,
        .banner .next {
            position: absolute;
            width: 20px;
            height: 30px;
            background-color: rgba(0, 0, 0, 0.3);
            top: 50%;
            transform: translateY(-50%);
            text-decoration: none;
            line-height: 30px;
            color: #fff;
            opacity: 0;
        }

        .banner .prev {
            left: 0;
            border-radius: 0 15px 15px 0;
        }

        .banner:hover .prev,
        .banner:hover .next {
            opacity: 1;
        }

        .banner .next {
            right: 0;
            border-radius: 15px 0 0 15px;
            text-align: center;
        }

        ol {
            position: absolute;
            height: 13px;
            bottom: 20px;
            left: 50%;
            display: flex;
            transform: translateX(-50%);
            background-color: rgba(255, 255, 255, 0.3);
            border-radius: 10px;
            cursor: pointer;
        }

        ol li {
            width: 8px;
            height: 8px;
            background-color: #fff;
            border-radius: 50%;
            margin: 3px
        }

        ol li.active {
            background-color: #ff5000;
        }
    </style>
</head>
<body>
<div class="banner">
    <ul>
        <li>
            <a href="#">
                <img src="./images/banner1.jpg" alt="">
            </a>
        </li>
        <li>
            <a href="#">
                <img src="./images/banner2.jpg" alt="">
            </a>
        </li>
        <li>
            <a href="#">
                <img src="./images/banner3.jpg" alt="">
            </a>
        </li>
    </ul>
    <a class="prev" href="#"><i class="iconfont icon-arrowleft"></i></a>
    <a class="next" href="#"><i class="iconfont icon-arrowright"></i></a>
    <ol>
        <li></li>
        <li class="active"></li>
        <li></li>
    </ol>
</div>
</body>
</html>